<template>
  <div class="page-container">
    <div class="description-box">
      <img class="banner" src="@/assets/images/404.png">
      <div class="description">
        <p class="title">糟糕!</p>
        <p class="content">无法访问当前页面...</p>
        <p class="info">请检查您输入的网址是否正确，或单击下面的按钮返回主页</p>
        <el-button type="primary" @click="goHome">返回首页</el-button>
      </div>
    </div>
  </div>
</template>

<script>

export default {
  name: 'Page404',
  methods: {
    goHome() {
      this.$router.replace({
        path: '/'
      })
    }
  }
}
</script>

<style lang="scss" scoped>
.description-box{
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 150px auto;
  .banner{
    width: 500px;
    height: auto;
  }
  .description{
    text-align: left;
    .title{
      color: #1482f0;
      font-size: 32px;
      line-height: 40px;
      margin-bottom: 20px;
      font-weight: 700;
    }
    .content{
      color: #222;
      font-size: 20px;
      line-height: 24px;
      margin-bottom: 10px;
      font-weight: 700;
    }
    .info{
      color: #999;
      font-size: 13px;
      line-height: 21px;
      margin-bottom: 30px;
    }
  }
}
</style>
